package app;

import java.util.Scanner;

/**
 * @author LeeV
 * @date 2021年12月16日 15:51
 * 库存管理类
 */

public class InventoryManagement extends InventoryGoods {
    Scanner sc = new Scanner(System.in);

    /**
     * 入库操作
     */
    void warehousing() {
        InventoryGoods inventoryGoods = new InventoryGoods();
        System.out.println("请输入电器名称");
        String name = sc.next();
        inventoryGoods.setBrand(name);
        System.out.println("请输入电器品牌");
        String brand = sc.next();
        inventoryGoods.setApplianceName(brand);
        System.out.println("请输入电器入库数量");
        int nums = sc.nextInt();
        inventoryGoods.setInventoryQuantity(nums);
        System.out.println("请输入电器入库单价");
        double price = sc.nextDouble();
        inventoryGoods.setInPrice(price);
        System.out.println("请输入入库时间");
        System.out.print("年：");
        int year = sc.nextInt();
        System.out.print("月：");
        int month = sc.nextInt();
        System.out.print("日：");
        int day = sc.nextInt();
        Time time = new Time(year,month,day);
        System.out.println("请输入送货人姓名");
        String Name  = sc.next();
        inventoryGoods.setDeliveryPersonsName(Name);
    }

    /**
     * 出库操作
     */
    void outOfStock() {

    }
}
